import { http } from "@/utils/http";
import type {GoodsResult} from '@/types/goods'

export const getGoodsAPI = (id:string) => {
    return http<GoodsResult>({
        method: 'GET',
        url: '/goods',
        data: {id},    
    })
}